import dd from 'gdt-jsapi';

export const getDingDingCode = () => {
	const p = new Promise((resolve, reject) => {
        dd.getAuthCode({
            corpId: "196729" || "50556240"//参数非必须 不传也行 
        }).then((res) => {
            if (res) {
                console.log(new Date() + ' data:', res)
                resolve(res);
            }
        }, res => {
        reject(res)
        })
	})
	return p
}

export default {}